home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / os2 / ooxdb200.zip / ooxcharacter.h < prev    next >
C/C++ Source or Header  |  1996-11-13  |  6KB  |  202 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: ooxcharacter.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.17
  7.  *     SOM Emitter emith: 2.47
  8.  */
  9.  
  10. #ifndef SOM_ooxcharacter_h
  11. #define SOM_ooxcharacter_h
  12.  
  13.  
  14. /*
  15.  * The SOM_STRICT_IDL macro means that we can ignore stars
  16.  * in our declarations of objects.
  17.  */
  18. #define SOM_STRICT_IDL 1
  19.  
  20.  
  21. /*
  22.  * Passthru lines: File: "C.ph", "before"
  23.  */
  24.  
  25. #include "ooxbase.h"
  26. #include "ooxfield.ih"
  27.  
  28. #include <som.h>
  29.  
  30. /*
  31.  * -- This emitter treats Method Tokens as Thunks by default.
  32.  * -- Use the sc modifier "nothunks" to change this default
  33.  */
  34. #undef somresolve_
  35. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  36.  
  37. /*
  38.  * Define the class name as an object type
  39.  */
  40. #ifndef ooxcharacter
  41. #define ooxcharacter SOMObject
  42. #endif
  43. /*
  44.  * Symbol parentComment is undefined
  45.  */
  46. #include <ooxfield.h>
  47.  
  48. /*
  49.  * Start of bindings for IDL types
  50.  */
  51.  
  52. #ifndef SOMClass
  53.     #define SOMClass SOMObject
  54. #endif /* SOMClass */
  55.  
  56. /*
  57.  * End of bindings for IDL types.
  58.  */
  59.  
  60. #define ooxcharacter_MajorVersion 0
  61. #define ooxcharacter_MinorVersion 0
  62.  
  63. /*
  64.  * External name shortening if required
  65.  */
  66. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  67. #define ooxcharacterNewClass c
  68. #pragma linkage(c, system)
  69. #define ooxcharacterClassData d
  70. #define ooxcharacterCClassData x
  71. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  72. /*--------------Migration------------*/
  73. #define ooxcharacter_classObj ooxcharacterClassData.classObject
  74. #define _ooxcharacter ooxcharacter_classObj
  75.  
  76. /*
  77.  * Declare the class creation procedure
  78.  */
  79. SOMEXTERN SOMClass  SOMLINK ooxcharacterNewClass(integer4 somtmajorVersion,
  80.         integer4 somtminorVersion);
  81. #pragma linkage(ooxcharacterNewClass, system)
  82.  
  83. /*
  84.  * Declare the class data structure
  85.  */
  86. SOMEXTERN struct ooxcharacterClassDataStructure {
  87.     SOMClass classObject;
  88.     somMToken define;
  89. } SOMDLINK ooxcharacterClassData;
  90.  
  91. /*
  92.  * Declare the C specific class data structure
  93.  */
  94. SOMEXTERN struct ooxcharacterCClassDataStructure {
  95.     somMethodTabs parentMtab;
  96.     somDToken instanceDataToken;
  97. } SOMDLINK ooxcharacterCClassData;
  98.  
  99. /*
  100.  * New and Renew macros for ooxcharacter
  101.  */
  102. #define ooxcharacterNew() \
  103.    ( _ooxcharacter ? \
  104.     _somNew(_ooxcharacter) \
  105.     : ( ooxcharacterNewClass(\
  106.         ooxcharacter_MajorVersion, \
  107.         ooxcharacter_MinorVersion),\
  108.        _somNew(_ooxcharacter)))
  109. #define ooxcharacterRenew(buf) \
  110.    ( _ooxcharacter ? \
  111.     _somRenew(_ooxcharacter, buf) \
  112.     : ( ooxcharacterNewClass(\
  113.         ooxcharacter_MajorVersion, \
  114.         ooxcharacter_MinorVersion),\
  115.        _somRenew(_ooxcharacter, buf)))
  116.  
  117. /*
  118.  * Override method: somDefaultInit
  119.  */
  120. #define ooxcharacter_somDefaultInit(somSelf,ctrl) \
  121.     SOMObject_somDefaultInit(somSelf,ctrl)
  122.  
  123. /*
  124.  * Override method: somUninit
  125.  */
  126. #define ooxcharacter_somUninit(somSelf) \
  127.     SOMObject_somUninit(somSelf)
  128.  
  129. /*
  130.  * New Method: define
  131.  */
  132. typedef void   SOMLINK somTP_ooxcharacter_define(ooxcharacter somSelf, 
  133.         somInitCtrl* ctrl, 
  134.         string name, 
  135.         short length);
  136. #pragma linkage(somTP_ooxcharacter_define, system)
  137. typedef somTP_ooxcharacter_define *somTD_ooxcharacter_define;
  138. #define somMD_ooxcharacter_define "::ooxcharacter::define"
  139. #define ooxcharacter_define(somSelf,ctrl,name,length) \
  140.     (SOM_Resolve(somSelf, ooxcharacter, define) \
  141.     (somSelf,ctrl,name,length))
  142. #ifndef SOMGD_define
  143.     #if (defined(_define) || defined(__define))
  144.         #undef _define
  145.         #undef __define
  146.         #define SOMGD_define 1
  147.     #else
  148.         #define _define ooxcharacter_define
  149.     #endif /* _define */
  150. #endif /* SOMGD_define */
  151.  
  152. /*
  153.  * Other Constructors for ooxcharacter
  154.  */
  155. static ooxcharacter ooxcharacterNew_define(string name,short length)
  156. {
  157.    ooxcharacter __somtmp_ooxcharacter;
  158.    if (!_ooxcharacter) ooxcharacterNewClass(ooxcharacter_MajorVersion, ooxcharacter_MinorVersion);
  159.    __somtmp_ooxcharacter = SOMClass_somNewNoInit(_ooxcharacter);
  160.    ooxcharacter_define(__somtmp_ooxcharacter,0,name,length);
  161.    return __somtmp_ooxcharacter;
  162. }
  163.  
  164. #ifndef SOM_DONT_USE_INHERITED_MACROS
  165. #define ooxcharacter_get_name ooxfield_get_name
  166. #define ooxcharacter_get ooxfield_get
  167. #define ooxcharacter_put ooxfield_put
  168. #define ooxcharacter_get_type ooxfield_get_type
  169. #define ooxcharacter_get_length ooxfield_get_length
  170. #define ooxcharacter_get_dec_point ooxfield_get_dec_point
  171. #define ooxcharacter_somDestruct SOMObject_somDestruct
  172. #define ooxcharacter_somDefaultCopyInit SOMObject_somDefaultCopyInit
  173. #define ooxcharacter_somDefaultAssign SOMObject_somDefaultAssign
  174. #define ooxcharacter_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
  175. #define ooxcharacter_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
  176. #define ooxcharacter_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
  177. #define ooxcharacter_somDefaultConstAssign SOMObject_somDefaultConstAssign
  178. #define ooxcharacter_somDefaultVAssign SOMObject_somDefaultVAssign
  179. #define ooxcharacter_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
  180. #define ooxcharacter_somInit SOMObject_somInit
  181. #define ooxcharacter_somFree SOMObject_somFree
  182. #define ooxcharacter_somGetClass SOMObject_somGetClass
  183. #define ooxcharacter_somGetClassName SOMObject_somGetClassName
  184. #define ooxcharacter_somGetSize SOMObject_somGetSize
  185. #define ooxcharacter_somIsA SOMObject_somIsA
  186. #define ooxcharacter_somIsInstanceOf SOMObject_somIsInstanceOf
  187. #define ooxcharacter_somRespondsTo SOMObject_somRespondsTo
  188. #define ooxcharacter_somDispatch SOMObject_somDispatch
  189. #define ooxcharacter_somClassDispatch SOMObject_somClassDispatch
  190. #define ooxcharacter_somCastObj SOMObject_somCastObj
  191. #define ooxcharacter_somResetObj SOMObject_somResetObj
  192. #define ooxcharacter_somDispatchV SOMObject_somDispatchV
  193. #define ooxcharacter_somDispatchL SOMObject_somDispatchL
  194. #define ooxcharacter_somDispatchA SOMObject_somDispatchA
  195. #define ooxcharacter_somDispatchD SOMObject_somDispatchD
  196. #define ooxcharacter_somPrintSelf SOMObject_somPrintSelf
  197. #define ooxcharacter_somDumpSelf SOMObject_somDumpSelf
  198. #define ooxcharacter_somDumpSelfInt SOMObject_somDumpSelfInt
  199. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  200.  
  201. #endif       /* SOM_ooxcharacter_h */
  202.